package com.encyclopedia.service.impl;

import com.encyclopedia.entity.Comments;
import com.encyclopedia.mapper.CommentsMapper;
import com.encyclopedia.service.CommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author MaLiang
 * @version 1.0
 * @date 2024-05-04 1:03
 */
@Service
public class CommentsServiceImpl implements CommentsService {
    @Autowired
    private CommentsMapper commentsMapper;


    @Override
    public List<Comments> getInfo(Integer id) {

        List<Comments> info = commentsMapper.getInfo(id);
        return info;
    }
}
